﻿using LJ.Abstractions.Pack.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.AspNetCore.Abstractions.Pack;

[Pack(PackType.Web)]
public abstract class AspNetCorePackBase : PackBase, IAspNetCorePack
{
    public override void Add(IPackContext packContext)
    {
    }

    public override void Use(IPackProvider packProvider)
    {
    }


    /// <summary>
    /// 加载服务
    /// </summary>
    /// <param name="aspNetCorePackContext"></param>
    public abstract void Add(IAspNetCorePackContext aspNetCorePackContext);

    /// <summary>
    /// 启动服务
    /// </summary>
    /// <param name="aspNetCorePackProvider"></param>
    public abstract void Use(IAspNetCorePackProvider aspNetCorePackProvider);
}
